package dhy.com.controller;

import dhy.com.AjaxResponse;
import dhy.com.service.SmsService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class SmsController {
    @Resource
    private SmsService smsService;
    
    @PostMapping("/sms/send")
    public AjaxResponse sendSms(@RequestParam("phoneNo") String phoneNo, @RequestParam("content") String content)
   {
       return smsService.send(phoneNo,content);
   }
}